import Http from '../http';

const uploadUrl = "https://oss-cn-hangzhou.aliyuncs.com/dby-resource/platform/1111/2023/11/01/6f356133e1cb4427ba29d403954add4d.png?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20231101T070600Z&X-Amz-SignedHeaders=host&X-Amz-Expires=599&X-Amz-Credential=LTAI5t8MkLnzGZqnVVfrtNRg%2F20231101%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Signature=4ed59ae0654c19a466fa0cb35a3c7c73704228ab28b93db9f945d51e4859ddc8";
const config = {
    headers: {
        'User-Agent': 'Apifox/1.0.0 (https://apifox.com)',
        'Accept': '*/*',
        'Host': '192.168.110.21:9000',
        'Connection': 'keep-alive',
        'Content-Type': 'image/png'
    }
};
export const uploadFile = function(res: any) {
    console.log(res)
    return Http.put(uploadUrl,res,config).then(res=>{
        console.log(res)
    }).catch(err=>{
        console.log(err)
    })
}
